|
haptic5 2.2.0
|
Haptic 5 Click context object. More...
#include <haptic5.h>
Data Fields | |
| digital_out_t | trg |
| digital_out_t | rst |
| digital_out_t | dir |
| pwm_t | pwm |
| i2c_master_t | i2c |
| uint32_t | pwm_freq |
| uint8_t | slave_address |
Haptic 5 Click context object.
Context object definition of Haptic 5 Click driver.
| digital_out_t dir |
Motor drive direction pin (PWM mode only - low:forward, high:reverse).
| i2c_master_t i2c |
I2C driver object.
| pwm_t pwm |
PWM driver object.
| uint32_t pwm_freq |
PWM frequency value.
| digital_out_t rst |
Reset pin (active low).
| uint8_t slave_address |
Device slave address (used for I2C driver).
| digital_out_t trg |
Trigger haptics pin (I2C mode only).